import axios from "../myaxios/myaxios";
//设置页面
//1.获取个人信息
export const getUserInfo = (params) => axios.get('user/getInfo')
//2.上传头像
export const uploadLogo = (base, name, type) => axios.post('/file/upload/base64', {
  base64: base,
  name: name,
  type: type,
})
//3.修改性别-女
export const updateWomen = () => axios.post('user/updateGender/female')
//4.修改性别-男
export const updateMen = () => axios.post('user/updateGender/male')
//5.退出登录
export const logOut = () => axios.post('logout')
//6.修改姓名提交
export const updateName = (params) => axios.post('user/updateUserName/' + params)
//7.修改密码提交
export const undatePsw=(ps1,ps2,ps3)=>axios.post('user/updatePassword/'+ps1+'/'+ps2+'/'+ps3)
